export function getOrderStatusText(status) {
  const orderStatuses = {
    'pending': '待接单',
    'accepted': '已接单',
    'picked': '已取件',
    'delivered': '已送达',
    'completed': '已完成',
    'cancelled': '已取消',
  };
  return orderStatuses[status] || "未知订单状态";
}

export function maskPhoneNumber(phoneNumber) {
  if (!phoneNumber) return;
  const str = phoneNumber.toString();
  if (str.length < 7) return phoneNumber;
  return str.slice(0, 3) + '****' + str.slice(-4);
} 